Skip to content

quickboot-display: trigger weston on msm_dpu driver instead of card0 - #10

Open
Wenwen Fu (wenwfu) wants to merge 1 commit into
qualcomm:mainfrom
wenwfu:fix/weston-stable-drm-match
Open

quickboot-display: trigger weston on msm_dpu driver instead of card0#10
Wenwen Fu (wenwfu) wants to merge 1 commit into
qualcomm:mainfrom
wenwfu:fix/weston-stable-drm-match

Conversation

@wenwfu

Copy link
Copy Markdown
Contributor

The udev rule matched KERNEL=="card0" to start weston, and the service ordered itself with Requires=/After=dev-dri-card0.device. The cardN numbering is assigned in probe order and is not guaranteed to be the display controller when more than one DRM device is present (e.g. a discrete GPU or a DP/HDMI bridge exposing its own card).

Match on DRIVERS=="msm_dpu" instead -- the msm display-controller driver name, which is stable and board-independent across the msm display stack. DEVTYPE=="drm_minor" + KERNEL=="card[0-9]" restrict the match to the card node itself, excluding renderD and card*- child nodes that share the same driver.

To keep an explicit ordering without the unstable cardN name, the rule also publishes SYSTEMD_ALIAS=/dev/dri/msm_dpu_card, exposing the node as the stable device unit dev-dri-msm_dpu_card.device; weston.service orders itself with Requires=/After=dev-dri-msm_dpu_card.device.

Verified on rb3gen2-core-kit: card0's parent display-controller driver is msm_dpu, the rule matches only the card0 minor (not renderD128 or the DP/HDMI connector nodes), the alias device unit comes up active, and the service loads with the alias dependency.

The udev rule matched KERNEL=="card0" to start weston, and the service
ordered itself with Requires=/After=dev-dri-card0.device. The cardN
numbering is assigned in probe order and is not guaranteed to be the
display controller when more than one DRM device is present (e.g. a
discrete GPU or a DP/HDMI bridge exposing its own card).

Match on DRIVERS=="msm_dpu" instead -- the msm display-controller driver
name, which is stable and board-independent across the msm display stack.
DEVTYPE=="drm_minor" + KERNEL=="card[0-9]*" restrict the match to the card
node itself, excluding renderD* and card*-<connector> child nodes that
share the same driver.

To keep an explicit ordering without the unstable cardN name, the rule
also publishes SYSTEMD_ALIAS=/dev/dri/msm_dpu_card, exposing the node as
the stable device unit dev-dri-msm_dpu_card.device; weston.service orders
itself with Requires=/After=dev-dri-msm_dpu_card.device.

Verified on rb3gen2-core-kit: card0's parent display-controller driver is
msm_dpu, the rule matches only the card0 minor (not renderD128 or the
DP/HDMI connector nodes), the alias device unit comes up active, and the
service loads with the alias dependency.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Signed-off-by: Wenwen Fu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant